<?xml version="1.0"?>
<component name="org.nuxeo.ecm.multi.tenant.directories.override">

  <require>org.nuxeo.ecm.multi.tenant.directories</require>

  <extension point="layouts" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <layout name="multi_tenant_vocabulary">
      <templates>
        <template mode="any">
          /directory/directory_layout_template.xhtml
        </template>
      </templates>
      <rows>
        <row>
          <widget>multi_tenant_vocabulary_id</widget>
        </row>
        <row>
          <widget>multi_tenant_vocabulary_label</widget>
        </row>
        <row>
          <widget>multi_tenant_vocabulary_obsolete</widget>
        </row>
        <row>
          <widget>multi_tenant_vocabulary_order</widget>
        </row>
      </rows>
    </layout>

    <layout name="multi_tenant_subtopic_vocabulary">
      <templates>
        <template mode="any">
          /directory/directory_layout_template.xhtml
        </template>
      </templates>
      <rows>
        <row>
          <widget>parent</widget>
        </row>
        <row>
          <widget>multi_tenant_xvocabulary_id</widget>
        </row>
        <row>
          <widget>multi_tenant_xvocabulary_label</widget>
        </row>
        <row>
          <widget>multi_tenant_xvocabulary_obsolete</widget>
        </row>
        <row>
          <widget>multi_tenant_xvocabulary_order</widget>
        </row>
      </rows>
      <widget name="parent" type="selectOneDirectory">
        <labels>
          <label mode="any">label.vocabulary.entry.parent</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>multitenantxvocabulary:parent</field>
        </fields>
        <properties mode="any">
          <property name="directoryName">topic</property>
          <property name="localize">true</property>
        </properties>
        <properties widgetMode="edit">
          <property name="required">true</property>
        </properties>
      </widget>
    </layout>

    <layout name="multi_tenant_l10ncoverage_vocabulary">
      <templates>
        <template mode="any">
          /directory/directory_layout_template.xhtml
        </template>
      </templates>
      <rows>
        <row>
          <widget>parent</widget>
        </row>
        <row>
          <widget>multi_tenant_l10nxvocabulary_id</widget>
        </row>
        <row>
          <widget>multi_tenant_l10nxvocabulary_label_en</widget>
        </row>
        <row>
          <widget>multi_tenant_l10nxvocabulary_label_fr</widget>
        </row>
        <row>
          <widget>multi_tenant_l10nxvocabulary_obsolete</widget>
        </row>
        <row>
          <widget>multi_tenant_l10nxvocabulary_order</widget>
        </row>
      </rows>
      <widget name="parent" type="select_l10n_vocabulary_tree">
        <labels>
          <label mode="any">label.vocabulary.entry.parent</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>multitenantl10nxvocabulary:parent</field>
        </fields>
        <properties mode="any">
          <property name="directoryName">l10ncoverage</property>
          <property name="selectIdOnly">true</property>
        </properties>
        <properties widgetMode="edit">
          <property name="required">true</property>
          <property name="displayObsoleteEntries">true</property>
        </properties>
      </widget>
    </layout>

    <layout name="multi_tenant_l10nsubjects_vocabulary">
      <templates>
        <template mode="any">
          /directory/directory_layout_template.xhtml
        </template>
      </templates>
      <rows>
        <row>
          <widget>parent</widget>
        </row>
        <row>
          <widget>multi_tenant_l10nxvocabulary_id</widget>
        </row>
        <row>
          <widget>multi_tenant_l10nxvocabulary_label_en</widget>
        </row>
        <row>
          <widget>multi_tenant_l10nxvocabulary_label_fr</widget>
        </row>
        <row>
          <widget>multi_tenant_l10nxvocabulary_obsolete</widget>
        </row>
        <row>
          <widget>multi_tenant_l10nxvocabulary_order</widget>
        </row>
      </rows>
      <widget name="parent" type="select_l10n_vocabulary_tree">
        <labels>
          <label mode="any">label.vocabulary.entry.parent</label>
        </labels>
        <translated>true</translated>
        <fields>
          <field>multitenantl10nxvocabulary:parent</field>
        </fields>
        <properties mode="any">
          <property name="directoryName">l10nsubjects</property>
          <property name="selectIdOnly">true</property>
        </properties>
        <properties widgetMode="edit">
          <property name="required">true</property>
          <property name="displayObsoleteEntries">true</property>
        </properties>
      </widget>
    </layout>
  </extension>

</component>
